home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / MacApp Documentation / MacApp AppleLink Messages / MacApp.Tech$ 12⁄1⁄89 / 0404-Some basic questions-Jan90 < prev    next >
Encoding:
Text File  |  1990-01-12  |  2.7 KB  |  60 lines  |  [TEXT/GEOL]

  1. Item    6491084                         11-Jan-90        19:11
  2.  
  3. From:   D4453                           Technically Soft, Chris Lang,PRT
  4.  
  5. To:     MACAPP.TECH$                    MacApp Technical
  6.  
  7. Sub:    Some basic questions
  8.  
  9. January 11, 1990
  10.  
  11. To:  MacApp'ers
  12. From:  Chris Lang, Technically Soft, PRT D4453
  13.  
  14.  
  15. I'm a relative novice at MacApp and therefore feel lost most of the time. My
  16. first question is just what is a silent failure?  Will it just "writeln" in my
  17. Debug code or should I be more concerned?  Case in point;
  18.  
  19. TDialogView.DismissDialog,  if CanDismiss returns a false then DismissDialog
  20. calls failure(noErr,0).
  21.  
  22. I have a modal dialog with Text Edit fields. If the user enters an incorrect
  23. value into one of these fields then I want an alert to be drawn to inform
  24. him/her of the error followed by selecting the incorrect text.  I've
  25. incorportated a verifyEntry routine within an overridden CanDismiss method.
  26. If in fact there was an error, after the user clicks the okay button of the
  27. alert the silent failure is generated.  Should I go through and write exception
  28. handlers for the failure generated by DismissDialog or ignore it?  Can I change
  29. the fDismissed field of TDialogView with out calling DismissDialog and thereby
  30. averting the silent failure altogether?
  31.  
  32. The second question is about, everyones favorite, the USES clause.  Is it
  33. necessary to include all of the MacApp units that are recommended on pages 77
  34. and 78 of the Intro to MacApp, or should I follow the example problems and only
  35. declare a few of the units (the Intro recommends 12 Units, calc only uses 4 of
  36. the 12????). I'm also having a hard time making a correct MABuild scrip.  I've
  37. written a unit called General.p which does some very basic things and have
  38. included it in the USES statement.  At first I couldn't get it to complile so I
  39. rewrote the MABuild Script to include it.  Then I got a Indentifier unknown
  40. error for the TYPE SFReply even though I have PACKAGES.p also listed in the
  41. USES statement.  Moving General.p to the PInterface folder and using the
  42. default MABuild didn't work either.
  43.  
  44. Why is it that when I select R from the Debugger I always get the same 63
  45. Procedures Listed?  I'm USEing UMacAppUtilities and according to the Intro to
  46. MacApp manual "…every routine in a unit that names UMacAppUtilities in its USES
  47. clause (including all of MacApp) is automatically covered by {D++}…".
  48.  
  49. One more simple question.  Do I have to explicitly create a file to write to
  50. within my MacApp Application?  Only the Cards example program actually calls
  51. the Standard File Create procedure,  do the rest just not save any thing or am
  52. I missing something altogether?
  53.  
  54. Whew, I feel better already having just asked the questions.
  55.  
  56. Thanks for your help
  57.     Chris, D4453
  58.  
  59.  
  60.